------------------------------------------------------------------------
-- @brief 层
------------------------------------------------------------------------
local P = class("LayerBase")
------------------------------------------------------------------------
-- @brief 构造函数
function P:ctor(layerMgr, layerIdx, modelName, params)
    self._layerMgr = layerMgr
    self._layerIdx = layerIdx
    self._modelName = modelName
    self._view = nil
    self._ui = {}
    self._hasDestory = false
    self._params = params or {}
    self:Awake()
end
------------------------------------------------------------------------
-- @brief 获取UI
function P:getView()
    return self._view
end
------------------------------------------------------------------------
-- @brief 获取模块名
function P:getModelName()
    return self._modelName
end
------------------------------------------------------------------------
-- @brief 唤醒
function P:Awake()
end
------------------------------------------------------------------------
-- @brief 开始
function P:Start(path)
end
------------------------------------------------------------------------
-- @brief 物理更新
function P:FixedUpdate()
end
------------------------------------------------------------------------
-- @brief 更新
function P:Update()
end
------------------------------------------------------------------------
-- @brief 退出
function P:Exit()
    self._hasDestory = true
    self._layerMgr:onDirty()
end
------------------------------------------------------------------------
-- @brief 销毁
function P:OnDestroy()

end
------------------------------------------------------------------------
return P